import React from "react";

interface AaaProps {
  name: string;
  content:React.ReactElement
}

function Aaa(props: AaaProps) {
  return <div>aaa, {props.name}{props.content}</div>
}
const content: JSX.Element = <div>aaa</div>

function App() {
  return <div>
    <Aaa name="guang" content={<button>xxx</button>}></Aaa>
  </div>
}

export default App;
